import request from "../uilts/request";

//获取客户回访信息
export function customer(params={}) {
    return request({
        url: "/api/customer/search",
        method: "GET",
        params
    })
}
//新增客户回访信息
export function addcustomer(m) {
    return request({
        url: "/api/customer/add",
        method: "POST",
        data:m
    })
}
//删除客户回访信息
export function delcustomer(id) {
    return request({
        url: "/api/customer/delete/"+id,
        method: "DELETE",
    })
}
//修改客户回访信息
export function modifycustomer(n) {
    return request({
        url: "/api/customer/modify",
        method: "PUT",
        data:n
    })
}
//获取各分公司下部门信息
export function getCustomerView(id) {
    return request({
        url: "/api/customer/view/"+id,
        method: "GET"
    })
}